// main.ts
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'

// main.ts
//@ts-ignore

import ElementPlus from 'element-plus' // 引入element-plus
import 'element-plus/dist/index.css' // 引入element-plus的样式
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';


import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import piniaPluginPersist from 'pinia-plugin-persist'


// import pinia from './store'
const pinia = createPinia()
createApp(App).mount('#app')

const app = createApp(App)
app.use(ElementPlus) // use element-plus 
app.use(router)

app.use(pinia)
pinia.use(piniaPluginPersist)
app.mount('#app')
app.use(Avue);



for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

